import 'package:flutter/material.dart';
import 'package:pkg_app_bar/pkg_app_bar.dart';
import 'package:pkg_dashedline_view/pkg_dashedline_view.dart';

class DashedlinePage extends StatefulWidget {
  const DashedlinePage({Key? key}) : super(key: key);

  @override
  _DashedlinePageState createState() => _DashedlinePageState();
}

class _DashedlinePageState extends State<DashedlinePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: CustomAppBar(title: "首页", canBack: true).build(context),
        body: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Container(
              width: 200,
              child: DashLine(
                dashedWidth: 8,
              ),
            ),
            Container(
                height: 200,
                child: DashLine(
                  axis: Axis.vertical,
                  dashedHeight: 8,
                ))
          ],
        ));
  }
}
